<!--
 * @Author: wangming
 * @Date: 2021-12-08 17:03:55
 * @LastEditors: wangming
 * @LastEditTime: 2021-12-22 13:56:55
 * @FilePath: /hanma-application-designer-fed/src/components/dynamicForm/rightModel/components/hmExpand.vue
 * @Description: 
-->
<template>
  <div>
    <el-form-item label="懒加载" class="tr">
      <el-switch
        v-model="value.__config.lazyload"
        @change="lazyloadChange"
      ></el-switch>
    </el-form-item>
    <el-form-item label="默认不展开节点" class="tr">
      <el-switch
        v-model="value.__config.expandAll"
        :disabled="value.__config.lazyload"
      />
    </el-form-item>
  </div>
</template>
<script>
import basicmixins from "./basicmixins";
export default {
  mixins: [basicmixins],
  data() {
    return {};
  },
  methods: {
    lazyloadChange(value) {
      if (value) {
        this.value.__config.expandAll = true;
      }
    },
  },
};
</script>

<style lang="scss" scoped></style>
